summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2024-02-19 06:37:49 +0100
committerGitHub <noreply@github.com>2024-02-19 06:37:49 +0100
commit58c7e846cbc1aaab3d7309712b9c68eef3633315 (patch)
tree2c7f89bfff44c351e58db435ae41f6a829ec16eb
parentMerge pull request #13026 from liamwhite/scale-this-mf (diff)
parentbuffer_cache: use mapped range with large vertex buffer size (diff)
downloadyuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar.gz
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar.bz2
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar.lz
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar.xz
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.tar.zst
yuzu-58c7e846cbc1aaab3d7309712b9c68eef3633315.zip
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 6d3d933c5..296c90e85 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -1130,7 +1130,7 @@ void BufferCache<P>::UpdateVertexBuffer(u32 index) {
channel_state->vertex_buffers[index] = NULL_BINDING;
return;
}
- if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end)) {
+ if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end) || size >= 64_MiB) {
size = static_cast<u32>(gpu_memory->MaxContinuousRange(gpu_addr_begin, size));
}
const BufferId buffer_id = FindBuffer(*device_addr, size);